package com.wicket.okrcomponent.integration.dto;

import com.wicket.okrcomponent.common.dto.BaseDto;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import java.util.Objects;
import javax.validation.constraints.NotNull;
import lombok.Data;

/**
 * @desc ConfSchemeCodeDto
 * @使用场景
 */
@Data
public class ConfSchemeCodeDto extends BaseDto implements Serializable {

  /**
   * 答案ID
   */
  @ApiModelProperty("答案ID")
  private String optionResultId;

  /**
   * 答案值
   */
  @ApiModelProperty("答案值")
  private String endValue;

  /**
   * 答案归属对象ID
   */
  @ApiModelProperty("答案归属对象ID")
  private String resultAspObjId;

  @Override
  public boolean equals(Object o) {
    if (this == o) return true;
    if (o == null || getClass() != o.getClass()) return false;
    if (!super.equals(o)) return false;
    ConfSchemeCodeDto that = (ConfSchemeCodeDto) o;
    return (
      optionResultId == that.optionResultId &&
      endValue == that.endValue &&
      resultAspObjId == that.resultAspObjId
    );
  }

  @Override
  public int hashCode() {
    return Objects.hash(
      super.hashCode(),
      optionResultId,
      endValue,
      resultAspObjId
    );
  }

}
